package com.masterclient.app.modules.coupon.contract;

import com.eoner.baselibrary.base.BasePresenter;
import com.eoner.baselibrary.base.BaseView;
import com.masterclient.app.modules.coupon.beans.NewCouponBean;

/**
 * 作者：sean
 * 创建时间：2017/8/4 11:19
 * 功能说明：
 */

public interface CouponContract {

    interface View extends BaseView {

        void onCouponListSuccess(NewCouponBean dataBean);
        void onReceiveCouponListSuccess(NewCouponBean dataBean);
        void loadFailed(String msg);


        void pickUpSalesruleSuccess(String coupon_code, String msg);
        void pickUpSalesruleFailed(String msg);
    }

    abstract static class Presenter extends BasePresenter<View> {

        @Override
        public void onStart() {

        }

        public abstract void getCouponList(String type,String page,String page_size);
        public abstract void getReceiveCouponList(String page,String page_size);
        public abstract void pickUpSalesrule(String coupon_code,String parent_product_id);

    }
}